Telegram Group Search
๐Ÿ”ฐ Linux Command Cheat Sheet

File Commands

- ls - Directory listing
- ls -l - Long listing format
- ls -a - List all files including hidden files
- cd /path/to/directory - Change directory
- pwd - Display the current working directory
- mkdir directory_name - Create a new directory
- rmdir directory_name - Remove an empty directory
- rm file_name - Remove a file
- rm -r directory_name - Remove a directory and its contents recursively
- touch file_name - Create or update a file
- cat file_name - Concatenate and display the file content
- more file_name - View file content page by page
- less file_name - Improved viewing of file content over more
- cp source_file target_file - Copy files from source to target
- mv old_name new_name - Rename or move a file/directory

SSH (Secure Shell)

- ssh user@host - Connect to host as user
- ssh -p port user@host - Connect using a specific port
- ssh-keygen -t rsa - Generate RSA key pair
- ssh-copy-id user@host - Copy your key to the remote server for password-less login

Searching

- grep pattern files - Search for a pattern in files
- grep -r pattern dir - Recursively search for a pattern in a directory
- find dir -name name* - Find files starting with name in a directory
- locate file_name - Find files by name (uses a database)

Process Management

- ps aux - Display your currently active processes
- ps aux | grep process_name - Find a process named process_name
- top - Display all running processes
- kill pid - Kill a process with a given PID
- killall process_name - Kill all processes named process_name
- bg - List stopped or background jobs; resume a stopped job in the background
- fg - Bring the most recent job to the foreground

File Permissions

- chmod +x file_name - Make a file executable
- chmod 755 file_name - Set read and execute permissions for owner and read for others
- chown user:group file_name - Change file owner and group

Networking

- ifconfig - Display all network interfaces and IP addresses
- ping host - Send ICMP echo request to host
- traceroute host - Display the route packets take to a network host
- netstat -tulnp - Display listening ports and their applications

Archiving and Compression

- tar cf archive_name.tar files - Create a tar archive containing files
- tar xf archive_name.tar - Extract files from a tar archive
- gzip file_name - Compress a file and rename it to file.gz
- gunzip file.gz - Decompress file.gz back to the original

System Info and Management

- uname -a - Show system and kernel info
- df -h - Display free disk space in a human-readable form
- du -sh directory_name - Show disk usage of a directory in human-readable form
- free -m - Show free and used memory in MB

Misc Commands

- man command_name - Show manual for a command
- echo "text" - Display a message on the screen
- date - Display the current date and time
- uptime - Show how long the system has been running
Please open Telegram to view this post
VIEW IN TELEGRAM
ุฅุฒุงูŠ ุชู†ูุฐ ุงู„ู€ Caching ููŠ Node.jsุŸ ๐Ÿค”
.
.
ู„ูˆ ุฃู†ุช ุดุบุงู„ ุจู€ Node.jsุŒ ูู€ ุฃูƒูŠุฏ ู‚ุงุจู„ุช ููŠ ูŠูˆู… ู…ุดูƒู„ุฉ ุฅู† ุงู„ู€ API ุนู†ุฏูƒ ุจูŠุจู‚ู‰ ุจุทูŠุก ุจุณุจุจ requests ูƒุชูŠุฑ ุฃูˆ ุนู…ู„ูŠุงุช ุชู‚ูŠู„ุฉ ุฒูŠ queries ุนู„ู‰ databaseุŒ ูˆุจุฏุฃุช ุชููƒุฑ:
"ู„ูŠู‡ ูƒู„ ู…ุฑุฉ ุฃุฌูŠุจ ู†ูุณ ุงู„ุฏุงุชุงุŸ ุทุจ ู…ููŠุด ุญู„ ุฃุณุฑุนุŸ"

ุงู„ุฅุฌุงุจุฉ ู‡ูŠ: Caching.

ูˆุฏู‡ ุงู„ู„ูŠ ู‡ู†ุชูƒู„ู… ุนู†ู‡ ุงู„ูŠูˆู… ุจุงู„ุชูุตูŠู„....

[ ูƒู„ ุงู„ุฃูƒูˆุงุฏ ู‡ุชู„ุงู‚ูŠู‡ุง ููŠ ุงู„ุชุนู„ูŠู‚ุงุช ุชุญุช ุงู„ุฑุณุงู„ุฉ ]

โ€”โ€”โ€”

๐ŸŽฏ ุฅูŠู‡ ู‡ูˆ ุงู„ู€ CachingุŸ


ุจุจุณุงุทุฉุŒ ู‡ูˆ ุฅู†ูƒ ุชุญูุธ ู†ุณุฎุฉ ู…ู† ุงู„ุฏุงุชุง ู…ุคู‚ุชู‹ุง ููŠ ู…ูƒุงู† ุชุงู†ูŠ (ุจูŠูƒูˆู† ุฃุณุฑุน ู…ู† ุงู„ู…ุตุฏุฑ ุงู„ุฃุณุงุณูŠ ุฒูŠ ุงู„ู€ DB)ุŒ ุนู„ุดุงู† ู„ู…ุง ุชูŠุฌูŠ ุชุทู„ุจ ู†ูุณ ุงู„ุญุงุฌุฉ ุชุงู†ูŠุŒ ู…ุง ุชุฑูˆุญ ุชุฌูŠุจู‡ุง ู…ู† ุงู„ุฃูˆู„ุŒ ู„ุงุŒ ุชุฑุฏ ุจุณุฑุนุฉ ู…ู† ุงู„ู€ cache.

ูˆุฏู‡ ุจูŠูุฑู‚ ุฌุงู…ุฏ ุฌุฏู‹ุง ููŠ ุงู„ุณุฑุนุฉุŒ ูˆุงู„ุฃุฏุงุกุŒ ูˆุงู„ุญู…ู„ ุนู„ู‰ ุงู„ุณูŠุฑูุฑ.

โ€”โ€”โ€”

ุฅุฒุงูŠ ุชุนู…ู„ ุงู„ู€ Caching ููŠ Node.jsุŸ


1. ุงู„ู€ In-Memory Caching (ุจุงุณุชุฎุฏุงู… node-cache ุฃูˆ lru-cache)

ู„ูˆ ุนู†ุฏูƒ ุฏุงุชุง ู…ุด ูƒุจูŠุฑุฉ ูˆู…ุด ู…ุญุชุงุฌ ุชุดุงุฑูƒู‡ุง ุจูŠู† ุฃูƒุชุฑ ู…ู† instanceุŒ ูู€ in-memory caching ุจูŠูƒูˆู† ุญู„ ุณุฑูŠุน ูˆุณู‡ู„.

๐Ÿ“Œ ู…ู†ุงุณุจ ู„ุญุงู„ุงุช ุฒูŠ ุงู„ุฏุงุชุง ุงู„ู‚ู„ูŠู„ุฉุŒ ุฃูˆ ุนู…ู„ูŠุงุช ุญุณุงุจูŠุฉ ุชู‚ูŠู„ุฉุŒ ุจุณ ุฎู„ูŠ ุจุงู„ูƒ ุฅู†ู‡ volatileุŒ ูŠุนู†ูŠ ู„ูˆ ุงู„ุณูŠุฑูุฑ ุนู…ู„ restartุŒ ูƒู„ ุญุงุฌุฉ ุจุชุฑูˆุญ.

โ€”โ€”โ€”

2. ุงู„ู€ Redis Caching (ุงู„ุญู„ ุงู„ุฃู‚ูˆู‰ ูˆุงู„ุฃุดู‡ุฑ)

ู„ูˆ ุจุชุฏูˆุฑ ุนู„ู‰ Cache centralized ูˆุณุฑูŠุน ูˆุชู‚ุฏุฑ ุชุดุงุฑูƒ ุงู„ุฏุงุชุง ุจูŠู† ุฃูƒุชุฑ ู…ู† instanceุŒ ูŠุจู‚ู‰ Redis ู‡ูˆ ุงู„ุฃูุถู„ ู‡ู†ุง.

๐ŸŽฏ ุงู„ู€ Redis ุณุฑูŠุน ุฌุฏู‹ุงุŒ ูˆุจูŠุณุชุฎุฏู… ููŠ ู…ุดุงุฑูŠุน ูƒุจูŠุฑุฉ ุฒูŠ Twitter ูˆ GitHub. ูˆูƒู…ุงู† ุชู‚ุฏุฑ ุชุชุญูƒู… ููŠ TTLุŒ ูˆุชุนู…ู„ invalidationุŒ ูˆุชุฎุฒู† ุฃูƒุชุฑ ู…ู† ู†ูˆุน ุฏุงุชุง.

โ€”โ€”โ€”

3. ุงู„ู€ Caching Responses ู…ุจุงุดุฑุฉ (ู…ุซู„ู‹ุง ููŠ GraphQL ุฃูˆ REST)

ู„ูˆ ุดุบุงู„ ู…ุซู„ุงู‹ ุจู€ Apollo Server ููŠ GraphQLุŒ ุชู‚ุฏุฑ ุชุณุชุฎุฏู… built-in caching

ุฃูˆ ุญุชู‰ ู„ูˆ ุดุบุงู„ REST ุชู‚ุฏุฑ ุชุณุชุฎุฏู… middlewares ุฒูŠ apicache ุฃูˆ express-cache-controller.

โ€”โ€”โ€”

๐Ÿค” ุฅู…ุชู‰ ุชุณุชุฎุฏู… ุงู„ู€ CachingุŸ


- ู„ู…ุง ุชูƒูˆู† ุจุชูƒุฑุฑ ู†ูุณ ุงู„ู€ requests ุจูƒู…ูŠุงุช ูƒุจูŠุฑุฉ.
- ู„ู…ุง ุงู„ุฏุงุชุง ุชูƒูˆู† ู…ุด ุจุชุชุบูŠุฑ ูƒุชูŠุฑ.
- ู„ูˆ ุงู„ู€ DB ุนู†ุฏูƒ ุจุทูŠุฆุฉ ุฃูˆ ุจุชุงุฎุฏ ูˆู‚ุช ููŠ ุงู„ู…ุนุงู„ุฌุฉ.
- ู„ูˆ ุนุงูŠุฒ ุชู‚ู„ู„ ุงู„ุชุฑุงููŠูƒ ุนู„ู‰ ุงู„ู€ backend.

โ€”โ€”โ€”

โš ๏ธ ุฎู„ูŠ ุจุงู„ูƒ:


ู„ุงุฒู… ุชุนู…ู„ Cache Invalidation ูƒูˆูŠุณุŒ ุนู„ุดุงู† ู…ุง ุชุฑุฌุน ุฏุงุชุง ู‚ุฏูŠู…ุฉ ุจุนุฏ ุงู„ุชุญุฏูŠุซ.

ุจู„ุงุด ุชุณุชุฎุฏู… ุงู„ู€ Caching ู„ุฃูŠ ุฏุงุชุง ุญุณุงุณุฉ ุฃูˆ ุดุฎุตูŠุฉ (privacy first).

ุฎู„ูŠูƒ ุฏุงูŠู…ู‹ุง ุนุงุฑู ุฅู…ุชู‰ ุชุนู…ู„ CacheุŒ ูˆุฅู…ุชู‰ ู„ุง... ู…ุด ูƒู„ ุญุงุฌุฉ ู…ุญุชุงุฌุฉ ุชุชุฎุฒู†.

โ€”โ€”โ€”

ูˆูู‚ูƒู… ุงู„ู„ู‡ ู„ูƒู„ ุฎูŠุฑ ๐ŸŒฟ
Please open Telegram to view this post
VIEW IN TELEGRAM
Top 5 JavaScript Design Patterns Every Front End Developer Must Know ๐ŸŒŸ
Please open Telegram to view this post
VIEW IN TELEGRAM
2025/06/15 09:14:30
Back to Top
HTML Embed Code: